GDK W32: Refuse to release mouse grab while in DnD mode
authorРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 14 Sep 2017 17:43:38 +0000 (17:43 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 2 Dec 2017 10:38:36 +0000 (10:38 +0000)
commita66017a6a083dc333d9192c766882c63bcaeffb7
tree2f59325dd41f71ae72ca24435025fc2903f89962
parent6d37ed6256d51455eb78480f0834f25429a08cf4
GDK W32: Refuse to release mouse grab while in DnD mode

Handle WM_CANCELMODE and do nothing in response to it when DnD is
active. Otherwise pass it to DefWindowProc, which will call ReleaseCapture()
on our behalf.
This prevents us from losing mouse capture when alt-tabbing during DnD
(this includes the feature of Windows Explorer where dragging stuff over
a window button in the taskbar causes that window to receive focus, i.e.
keyboardless alt-tabbing).

https://bugzilla.gnome.org/show_bug.cgi?id=786509
gdk/win32/gdkevents-win32.c